SHELL=cmd.exe
CXX = g++
CXXFLAGS	:= -std=c++11 -Wall -Wextra -g
OUTPUT	:= output
SRC		:= src
MAIN	:= main.exe
OUTPUTMAIN:=$(OUTPUT)/$(MAIN)
SOURCEDIRS	:= $(SRC)
RM			:= -rm
TEST :=$(SRC)/mergeSort.cpp
TESTOBJ :=$(TEST:%.cpp=%.o)
all:$(MAIN)

$(MAIN): $(TESTOBJ) 
	$(CXX) $(CXXFLAGS) $^ -o $(OUTPUTMAIN)  
$(TESTOBJ):%.o:%.cpp
	$(CXX) $(CXXFLAGS) -c $<  -o $@
run: all
	./$(OUTPUTMAIN)
.PHONY:clean
clean:
	del $(subst /,\,$(OUTPUTMAIN))
	del $(subst /,\,$(TESTOBJ))
	